<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class BaseController extends CI_Controller
{
    public $userObj = null;

    public function __construct()
    {
        parent::__construct();
        if (!User::IsAuthenticated()) {
            redirect('/login');
        } else {
            $this->userObj = User::GetCurrentUser();
        }
    }

}
